#!/bin/sh
BUILD_SELECT=$1

if [ "$BUILD_SELECT" = "all" ]; then
    echo "Start build"
    make CONFIG_CHIP_NAME=BL602 CONFIG_LINK_ROM=1 -j8 
elif [ "$BUILD_SELECT" = "clean" ]; then
    echo "Start to understand the function"
    make clean
    rm -rf build_out
else
    echo "not command"
    make CONFIG_CHIP_NAME=BL602 CONFIG_LINK_ROM=1 -j8 
fi

exit $?
